package com.mob.commons;

import com.mob.tools.MobLog;
import com.mob.tools.log.NLog;
import com.mob.tools.utils.FileLocker;
import java.io.File;

public class j
{
  public static final void a(File paramFile, Runnable paramRunnable)
  {
    a(paramFile, true, paramRunnable);
  }

  public static final void a(File paramFile, boolean paramBoolean, Runnable paramRunnable)
  {
    try
    {
      if (!paramFile.getParentFile().exists())
        paramFile.getParentFile().mkdirs();
      if (!paramFile.exists())
        paramFile.createNewFile();
      FileLocker localFileLocker = new FileLocker();
      localFileLocker.setLockFile(paramFile.getAbsolutePath());
      if (localFileLocker.lock(paramBoolean))
      {
        paramRunnable.run();
        localFileLocker.release();
      }
      return;
    }
    catch (Throwable localThrowable)
    {
      MobLog.getInstance().w(localThrowable);
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.mob.commons.j
 * JD-Core Version:    0.6.2
 */